// Texture.cs
//

using System;
using System.Collections.Generic;
using System.Html;
using System.Html.Media.Graphics;

namespace Moonbeam.Content
{
    public class Texture
    {
        ImageElement ie = null;
        public int Height
        {
            get
            {
                return ie.Height;
            }
        }

        public int Width
        {
            get
            {
                return ie.Width;
            }
        }

        public Texture() { }

        public void LoadFromFile(string path)
        {
            ie = (ImageElement)Document.CreateElement("img");

            ie.Src = path;
        }

        public ImageElement GetIamge()
        {
            return ie;            
        }
    }
}
